import hyRequest from "@/service";

import { IDataType } from '../../type'

export function getPageListData(url: string, queryInfo: any){
 return hyRequest.post<IDataType>({
    url: url,
    data: queryInfo
  })
}
//删除用户列表
//url:/user/id
export function deletePageData(url: string){
  return hyRequest.delete<IDataType>({
     url:url
  })
}
//新建用户
export function createPageData(url: string,newData: any){
  return hyRequest.post<IDataType>({
    url:url,
    data:newData
  })
}
//编辑用户
export function editPageData(url: string,editData: any){
  return hyRequest.patch<IDataType>({
    url:url,
    data:editData
  })
}
